package 泛型2;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @author Administrator
 * @ClassName Test
 * @TIME 星期二 2020/12/29
 */
public class Test {
    public static void main(String[] args) {
        double start = System.currentTimeMillis();
        Collection<Student> c = new ArrayList<>();
        c.add(new Student("List",23));
        c.add(new Student("Waning",20));
        Object[] objArr = c.toArray();
        for (Object a : objArr){
            System.out.println(a);
        }
        double stop = System.currentTimeMillis();
        System.out.println(stop - start +" ms");
    }
}
